<?php
/**
 * Created by PhpStorm.
 * User: Evenvi
 * Date: 2015/3/25
 * Time: 17:04
 */


class Model extends SQLQuery{
    protected $_model;
    function __construct() {
        $this->connect(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME);
        $this->_model = get_class($this);
        $this->_table = strtolower($this->_model)."s";
    }
    function __destruct() {
    }
}